package com.zsk.blog.service.imp;

import com.zsk.blog.entity.User;
import com.zsk.blog.repository.UserRepository;
import com.zsk.blog.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: blog
 * @description:
 * @author: Mr.Wang
 * @create: 2020-04-14 16:36
 **/

@Service
public class UserServiceImp implements UserService {

    @Resource
    UserRepository userRepository;

    @Override
    public User findByAccount(String account) {
        return userRepository.findByAccount(account);
    }
}
